package com.example.mqtt.doman.dto;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
public class MqttMessageDTO implements Serializable {

    /**
     * 消息类型
     * */
    private String type;

    /**
     * 消息来源
     * */
    private String source;
    /**
     * 消息载体
     * */
    private Object data;
    public MqttMessageDTO(){
    }
    public MqttMessageDTO(String type,String source,Object data){
        this.type = type;
        this.data = data;
        this.source = source;
    }

}
